Asc (str)

Basic and Crystal syntax.

Arguments

str is a text string.

Returns

Whole Number (the ASCII value for the first character in the string).

Action

The Asc (str) function returns the ASCII code of the first character of the string.

Typical uses

Use this function anytime you need to obtain the ASCII value of a character. This function is most useful for application developers using the Report Engine.

Examples

The following example is applicable to both Basic and Crystal syntax:

Asc("A")

Returns 65.

Comments

This function is designed to work like the Visual Basic function of the same name.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com